import { get, post } from "./http"


// 登录请求
export let reqlogin = (params) => post("/api/login", params)
// 登录请求
export let reqregister = (params) => post("/api/register", params)

// 新人专享
export let reqgetnew = () => get("/api/getnew")
// 万人团
export let reqgetgroupon = () => get("/api/getgroupon")
// 倒计时
export let reqgetcountdown = () => get("/api/getcountdown")
// 秒杀
export let reqgetseckill = () => get("/api/getseckill")
// 首页商品
export let reqgetindexgoods = () => get("/api/getindexgoods")

// 获取分类商品
export let reqgetcate = () => get("/api/getcate")
// 获取分类商品
export let reqgetgoods = (params) => get("/api/getgoods", params)